package com.example.test003.service.impl;

import com.example.test003.domain.entity.Myweathers;
import com.example.test003.mapper.MyWeatherMapper;
import com.example.test003.mapper.WeatherStationMapper;
import com.example.test003.pojo.WeatherStation;
import com.example.test003.service.WeatherStationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class WeatherStationServiceImpl implements WeatherStationService {

    @Autowired
    private WeatherStationMapper weatherStationMapper;

    @Autowired
    private MyWeatherMapper myWeatherMapper;

    @Override
    public List<WeatherStation> queryWeatherStation(String time) {
        List<WeatherStation> weathers=weatherStationMapper.queryWeatherStation(time);
        return weathers;
    }

    @Override
    public List<WeatherStation> queryWeatherStationDaFang(String time) {
        List<WeatherStation> weathers=weatherStationMapper.queryWeatherStationDaFang(time);
        return weathers;
    }

    @Override
    public List<Myweathers> queryWeatherStationByName(String time, String name) {
        List<Myweathers> myweathers=myWeatherMapper.queryWeatherStationByName(time,name);
        return myweathers;
    }
}
